package com.heqiang.tools;

import lombok.NoArgsConstructor;


@NoArgsConstructor
public class DataTableParam {
    private int start;
    private int length;

    public int getPageNo() {
        return this.start == 0 ? 1 : this.start / this.length + 1;
    }

    public int getStart() {
        return this.start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLength() {
        return this.length;
    }

    public void setLength(int length) {
        this.length = length;
    }
}
